package io.gitee.twoke.generator.engine.impl.interceptor;

import io.gitee.twoke.generator.engine.impl.cfg.GenerateEngineConfigurationImpl;

public class CommandContextFactory {

  protected GenerateEngineConfigurationImpl generateEngineConfiguration;

  public CommandContext createCommandContext(Command<?> cmd) {
    return new CommandContext(cmd, generateEngineConfiguration);
  }

  // getters and setters
  // //////////////////////////////////////////////////////

  public GenerateEngineConfigurationImpl getGenerateEngineConfiguration() {
    return generateEngineConfiguration;
  }

  public void setGenerateEngineConfiguration(GenerateEngineConfigurationImpl generateEngineConfiguration) {
    this.generateEngineConfiguration = generateEngineConfiguration;
  }
}